import { computed, Ref } from 'vue'
import { TotalData, NumData } from '../types'

/**
 * 整体现状
 */
export function useEvaluationStatus({
  numData,
}: {
  numData: Ref<NumData | null>
}) {
  return {
    boy: computed(() =>
      numData.value?.allNum?.find((item) => item.code === '1')
    ),
    girl: computed(() =>
      numData.value?.allNum?.find((item) => item.code === '2')
    ),
  }
}
